package com.ycc.springcloud.pojo;

import lombok.experimental.Accessors;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * 一个用户对应一个购物车
 * 一个购物车中有多个购物项
 * redis中存的key为username
 * value为cart对象
 * cart对象包含：产品对象、此产品购买数量、小计
 *
 * @Author: ycc
 * @Date: 2021/6/26 7:02
 */

@Accessors(chain = true)
public class CartItem {
    private List<T> cartList;
    private Long count;

    public CartItem() {
    }

    public CartItem(List<T> cartList, Long count) {
        this.cartList = cartList;
        this.count = count;
    }

    public List<T> getCartList() {
        return cartList;
    }

    public void setCartList(List<T> cartList) {
        this.cartList = cartList;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }
}
